package com.shwread.android.ui.dialog;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.Button;

import com.shwread.android.qysw.activity.OrderMenuRechargeActivity;


public class BalanceNotEnoughDialog
        extends
        CommonDialog
{
	
	private Activity activity;
	
	public BalanceNotEnoughDialog(Context context) {
		super(context);
		
		activity = (Activity) context;
		tvOk.setText("充值");
		tvText.setText("账户余额不足，是否进行充值？");
		((Button) vCancel).setText("取消");
	}
	
	@Override
	protected void clickOk(View v) {
		Intent intent = new Intent(activity, OrderMenuRechargeActivity.class);
		activity.startActivity(intent);
		super.clickOk(v);
	}
	
	@Override
	protected void clickCancel(View v) {
		super.clickCancel(v);
	}
}
